<script setup lang="ts">
import { useUserStore } from './stores'
const store = useUserStore()
</script>

<template>
  <p>{{ store.user }}</p>
  <button
    @click="
      store.setUser({
        token: '1',
        refreshToken: '2',
        avatar: 'a',
        mobile: '13111112222',
        account: '小韩',
        id: '1234'
      })
    "
  >
    登录
  </button>
  <button @click="store.delUser()">退出</button>
</template>
